/*******************************************************************************
 * Copyright (c) 2012-2017 Codenvy, S.A.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   Codenvy, S.A. - initial API and implementation
 *******************************************************************************/
.onoffswitch {
    position: relative;
    width: 50px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.onoffswitchCheckbox {
    display: none;
}

.onoffswitchLabel {
    display: block;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #5E5E5E;
    border-radius: 13px;
}

.onoffswitchInner {
    width: 200%;
    margin-left: -100%;
    -moz-transition: margin 0.3s ease-in 0s;
    -webkit-transition: margin 0.3s ease-in 0s;
    -o-transition: margin 0.3s ease-in 0s;
    transition: margin 0.3s ease-in 0s;
}

.onoffswitchInner:before, .onoffswitchInner:after {
    float: left;
    width: 50%;
    height: 20px;
    padding: 0;
    line-height: 20px;
    font-size: 9px;
    color: white;
    font-family: mainFontFamily;
    font-weight: bold;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.onoffswitchInner:before {
    content: "ON";
    padding-left: 5px;
    background-color: #3E6CA5;
    color: #FFFFFF;
}

.onoffswitchInner:after {
    content: "OFF";
    padding-right: 3px;
    background-color: #EEEEEE;
    color: #999999;
    text-align: right;
}

.onoffswitchSwitch {
    width: 21px;
    margin: -0.5px;
    background: #DDDDDD;
    border: 2px solid #5E5E5E;
    border-radius: 13px;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 26px;
    -moz-transition: all 0.3s ease-in 0s;
    -webkit-transition: all 0.3s ease-in 0s;
    -o-transition: all 0.3s ease-in 0s;
    transition: all 0.3s ease-in 0s;
}

.onoffswitchCheckbox:checked + .onoffswitchLabel .onoffswitchInner {
    margin-left: 0;
}

.onoffswitchCheckbox:checked + .onoffswitchLabel .onoffswitchSwitch {
    right: 0px;
}